local PartA = Instance.new("Part") local SA = Instance.new("Sound",PartA) SA.SoundId = "rbxasset://sounds/glassbreak.wav" SA.Volume = 2.8 SA.PlayOnRemove = true local PartB = Instance.new("Part") local SB = Instance.new("Sound",PartB) SB.SoundId = "rbxasset://sounds/flashbulb.wav" SB.Volume = 2.8 SB.PlayOnRemove = true PartA.Transparency = 1 PartA.CanCollide = false PartA.Anchored = true PartB.Transparency = 1 PartB.CanCollide = false PartB.Anchored = true function Shatter(pos) if SA and SA.Parent then SA.PlaybackSpeed = math.random(130,210) / 100 end if PartA then PartA.Position = pos PartA.Parent = script PartA.Parent = nil end end function Place(pos) if SB and SB.Parent then SB.PlaybackSpeed = math.random(80,120) / 100 end if PartB then PartB.Position = pos PartB.Parent = script PartB.Parent = nil end end while true do wait(1) local C = script:GetChildren() local Walls = 0 for i = 1,#C do if C[i].Name == "Target" then Walls = Walls + 1 end end if Walls < 10 then local Object = Instance.new("Model",script) Object.Name = "Target" local Part = Instance.new("Part",Object) Part.BrickColor = BrickColor.new("Bright red") Part.TopSurface = Enum.SurfaceType.Smooth Part.BottomSurface = Enum.SurfaceType.Smooth Part.Size = Vector3.new(6,0.8,6) local Part2 = Instance.new("Part",Object) Part2.Name = "Part2" Part2.BrickColor = BrickColor.new("White") Part2.TopSurface = Enum.SurfaceType.Smooth Part2.BottomSurface = Enum.SurfaceType.Smooth Part2.Size = Vector3.new(4,0.9,4) local Part3 = Instance.new("Part",Object) Part3.Name = "Part3" Part3.BrickColor = BrickColor.new("Bright red") Part3.TopSurface = Enum.SurfaceType.Smooth Part3.BottomSurface = Enum.SurfaceType.Smooth Part3.Size = Vector3.new(2,1,2) local Weld = Instance.new("Weld",Part) Weld.Part0 = Part Weld.Part1 = Part2 local Weld2 = Instance.new("Weld",Part2) Weld2.Part0 = Part2 Weld2.Part1 = Part3 local Tag = Instance.new("StringValue",Object) Tag.Name = "FakeHumanoid" Part.CFrame = CFrame.new(math.random(-240,240),5,math.random(-240,240)) Place(Part.Position) local Destroyed = false function Remove(item) if (item == Part or item == Weld) and not Destroyed then Destroyed = true Tag:Destroy() Object:BreakJoints() Shatter(Part.Position) game:GetService("Debris"):AddItem(Object,3) end end Object.DescendantRemoving:Connect(Remove) end end